package com.mybatis.v2;


import com.mybatis.v2.config.SpringMybatisConfig;
import com.mybatis.v2.dao.ProductMapper;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MainTest {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context
				= new AnnotationConfigApplicationContext(SpringMybatisConfig.class);

		ProductMapper productMapper = (ProductMapper) context.getBean("productMapper");
		productMapper.qryProductInfoById(1);
		/*AccountMapper accountMapper = (AccountMapper) context.getBean("accountMapper");
		accountMapper.qryAccount(1);*/
	}

}
